<?php

class action_userManagement extends action{
	protected function init(){
		$this->template = 'actions/userManagement.tpl';
	}
	
	public function process($data=null){
		
		$sql = <<<eol
SELECT
	user_id,
	loginname,
	name,
	administrator,
	active,
	time_created,
	time_changed,
	time_last_login
FROM
	users
eol;
		
		$users = $this->db->getAssoc($sql);
		
		$this->assign('users', $users);
	}
	
	public function hasAccess(){
		return umUser::getInstance()->isAdministrator();
	}
}
